import {
  BASE_URL
} from '@/settings'
import request from '@/utils/request'

export function qudaoRequireList(data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/channels/listAllForMini`,
    method: 'GET',
    data
  })
}

// 提交表单
export function save(data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/empInfos/saveEmpInfoRelationForMini`,
    method: 'post',
    data: data
  })
}
// 提交外包表单
export function saveWaibao(data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/empInfos/saveEmpInfoAndRuleForMini`,
    method: 'post',
    data: data
  })
}

// 获取参数
export function getByKey(data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/miniProgram/getByKey`,
    method: 'GET',
    data
  })
}